{% extends "base.html" %}
{% import "page.html" as page %}
{% block content %}
    <div id="ip_pool_detail_list" class="content-wrapper list">
        <section class="content-header">
            <h1>
                管理员配置
                <small>
                    默认显示10条数据
                </small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="{{ url_for('index.index') }}"><i class="fa fa-dashboard"></i> Home</a></li>
                <li> IP管理</li>
                <li class="active"> IP池详情</li>
            </ol>
        </section>
        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-md-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            IP池信息
                        </div>
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover">
                                    <thead>
                                    <tr>
                                        <th>IP</th>
                                        <th>状态</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    {% for item in ippools %}
                                        <tr>
                                            <td>{{ item.IP }}</td>
                                            <td>{{ item.status }}</td>
                                        </tr>
                                    {% endfor %}
                                    </tbody>
                                </table>
                            </div>
                            {% if pagination %}
                                <div class="pagination" style="float:right">
                                    {{ page.pagination_widget(pagination,"assets.asset_ip_pool_detail", ip_segment_id=ip_segment_id) }}
                                </div>
                            {% endif %}
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
{% endblock %}
{% block bottom_js %}
{% endblock %}